import { resolve } from "path";

export default {
  type: process.env.DB_TYPE,
  host: process.env.DB_HOST,
  port: Number(process.env.DB_PORT),
  database: process.env.DB_DATABASE,
  username: process.env.DB_USERNAME,
  password: process.env.DB_PASSWORD,
  dropSchema: false,
  synchronize: false,
  logging: true,
  timezone: 'UTC',
  charset: 'utf8mb4',
  multipleStatements: true,
  keepConnectionAlive: true,
  extra: {
    connectionLimit: 10, // 连接池最大连接数量 core number  * 2 + n
  },
};
